<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>组合选择器</title>
    <style>
      p {
        color: blue;
      }
      .mp {
        color: red;
      }

      /* 
        组合选择器
        一般都是标签+类选择器组合,权重是累加
      */
      p.mp {
        color: green;
      }
    </style>
  </head>
  <body>
    <p>段落1</p>
    <p class="mp">段落2</p>
    <p class="mp">段落3</p>
    <span class="mp">span</span>
  </body>
</html>
